<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>
  <style>
    *{
      margin: 0 ;
      padding: 0; 
    }
    html,body{
      width: 100%;
      height: 100%;
    }
    .wrapper{
      width: 100%;
      height: 100%;
      position: relative;
    }
    .pos{
      position: absolute;
      top: -100%;
      left: 0;
      background: rgba(0, 0, 0, .3);
      width: 100%;
      height: 50%;
      z-index: 999;
    }
    .wraps{
      width: 300px;
      height: 100%;
      float: left;
      border: 1px solid red;
    }
    .off{
      width: 100px;
      height: 30px;
      margin: 0 auto;
    }
  </style>
</head>
<body>
    <div class="wrapper">
      <div class="pos">
        <div class="wraps">
            <p>1</p>
            <p>1</p>
            <p>1</p>
            <p>1</p>
            <p>1</p>
            <p>1</p>
            <p>1</p>
            <p>1</p>
            <p>1</p>
            <p>1</p>
            <p>1</p>
            <select name="" id="select">
              <option value="1">1</option>
              <option value="2">2</option>
              <option value="3">3</option>
              <option value="4">4</option>
              <option value="5">5</option>
            </select>
        </div>
        <button class="off">关闭</button>
      </div>
      <button class="btn">按钮</button>
    </div>

    <script>
      $(()=>{
        $('.btn').click((e)=>{
          e.stopPropagation();
          $('.pos').animate({top:'0'},100)
        })
        $('.off').click(()=>{
          $('.pos').animate({top:'-100%'},100)
        })
        // 点击弹窗外面的地方弹窗消失
        $('.wraps').click((e)=>{
          e.stopPropagation();
        })
        $('.wrapper').click(function (e) {
          e.stopPropagation();
          $('.pos').animate({top:'-100%'},100)
          console.log('fu')
        });
      })
    </script>
</body>
</html>